#ifndef H_DRAWINGWIDGET
#define H_DRAWINGWIDGET

#include "listButton.h"
#include "particleSystem.h"
#include "brush.h"
#include "flexGrid.h"
#include "ragDoll.h"

class NewDrawingButton;

class DrawingWidget: public ListButton
{
public:

        int  drawing;
        float brushScale;

        Vector3f widgetLocation;

        Vector4f colorOne;
        Vector4f colorTwo;
        Vector4f colorThree;

        bool           bWidgetOpen;

        static FlexGrid * flexGrid;                //converts particle drawings to vector grids
        static Brush * brush;
        static Actor * grid;

        static string gridAxis;

        DrawingWidget();
        ~DrawingWidget();

        virtual void placeButton(int buttonNumber, int drawPosition);

        virtual void setup();

        virtual void trigger(Actor * other);
        virtual void clickedLeft();
        virtual void deselect(int depth);

        virtual void load(TiXmlElement* myInfo);

        static void createGrid();
        static void createGrid(Vector3f offset);
        static void switchGridPlane();
        static void destroyGrid();
};
#endif
